<?php /* Smarty version Smarty-3.1.8, created on 2019-07-16 19:57:59
         compiled from "/Users/aron/GitRepos/PHPBroShop/broshop/home/views/default/public/header.html" */ ?>
<?php /*%%SmartyHeaderCode:18708670015d2dbbc73ec380-92252849%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e9a70eab735ce6643a4c1728560487de2c1e6c9e' => 
    array (
      0 => '/Users/aron/GitRepos/PHPBroShop/broshop/home/views/default/public/header.html',
      1 => 1450315286,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '18708670015d2dbbc73ec380-92252849',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'title' => 0,
    'setting' => 0,
    'res' => 0,
    'public' => 0,
    'app' => 0,
    'cart_num' => 0,
    'root' => 0,
    'cats' => 0,
    'v' => 0,
    'ads' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5d2dbbc7584c81_81321345',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5d2dbbc7584c81_81321345')) {function content_5d2dbbc7584c81_81321345($_smarty_tpl) {?><!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<title><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
 - <?php echo $_smarty_tpl->tpl_vars['setting']->value['web_title'];?>
</title>
	<meta name="keywords" content="<?php echo $_smarty_tpl->tpl_vars['setting']->value['web_keywords'];?>
" />
	<meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['setting']->value['web_description'];?>
" />
	<link type="text/css" rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['res']->value;?>
/css/style.css" />
	<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['public']->value;?>
/js/jquery.js"></script>
	<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['public']->value;?>
/js/global.js"></script>
</head>
<body>
	<div class="pagetop">
		
		<?php if (bro_login('user')){?>
		<div class="quick_menu">
			<p>
			<span class="fl">您好<a style="border:0px;padding:0px" href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=user&a=order" title="会员中心"><span class="cred"><?php echo $_SESSION['name'];?>
</span></a>， <?php echo $_smarty_tpl->tpl_vars['setting']->value['web_title'];?>
</span>
				<span class="fr">
				<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=user&a=order" title="会员中心">会员中心</a>
				<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=order&a=add" title="购物车" class="gwc">购物车 <span class="cred"><?php echo $_smarty_tpl->tpl_vars['cart_num']->value;?>
</span> 件</a>
				<?php if ($_smarty_tpl->tpl_vars['setting']->value['web_weibo']!=''){?>
					<a href="<?php echo $_smarty_tpl->tpl_vars['setting']->value['web_weibo'];?>
" title="官方微博" target="_blank">官方微博</a>
				<?php }?>
				<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=order&a=plist" title="订单查询">订单查询</a>
				<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=user&a=logout" title="退出" style="border:0">退出</a>
			</span>
			</p>
		</div>

		<?php }else{ ?>

		<div class="quick_menu">
			<p>
				<span class="fl">您好，<?php echo $_smarty_tpl->tpl_vars['setting']->value['web_title'];?>
</span>
				<span class="fr">
					<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=user&a=login&<?php echo bro_fromto();?>
" title="登录">登录</a>
					<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=user&a=register&<?php echo bro_fromto();?>
" title="注册">注册</a>
					<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=order&a=add" title="购物车" class="gwc">购物车 <span class="cred"><?php echo $_smarty_tpl->tpl_vars['cart_num']->value;?>
</span> 件</a>
					<?php if ($_smarty_tpl->tpl_vars['setting']->value['web_weibo']!=''){?>
						<a href="<?php echo $_smarty_tpl->tpl_vars['setting']->value['web_weibo'];?>
" title="官方微博" target="_blank">官方微博</a>
					<?php }?>
					<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=order&a=plist" title="订单查询" style="border:0">订单查询</a>
				</span>
			</p>
		</div>

		<?php }?>



	
		<div class="width980">
			<div class="header">
				<div class="fl logo">
					<a href="<?php echo $_smarty_tpl->tpl_vars['root']->value;?>
/index.php" title="<?php echo $_smarty_tpl->tpl_vars['setting']->value['web_title'];?>
"><img src="<?php echo thumb($_smarty_tpl->tpl_vars['setting']->value['web_logo'],200,60,false);?>
" height="60" alt="<?php echo $_smarty_tpl->tpl_vars['setting']->value['web_title'];?>
" /></a>
				</div>
				
				<div class="sear fl">				
					<form method="get">
						<div class="inputbg fl">
							<input type="hidden" name="m" value="product">
							<input type="hidden" name="a" value="plist">
							<input type="text" name="keyword" value="<?php echo $_GET['keyword'];?>
" class="fl searinput c666" />
						</div>
						<input type="submit" class="fl sear_btn" onclick="this.form.submit();return false;" value="搜索" />
					</form>
				</div>
				<p class="top_tel fr">咨询热线：<?php echo $_smarty_tpl->tpl_vars['setting']->value['web_phone'];?>
</p>
			</div>
		</div>
		
		<div class="clear"></div>
		
		<div class="nav">
			<ul>
				<li class="sel"><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
" title="首页">首页</a></li>
				<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cats']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
				<li><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=plist&cid=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['catname'];?>
</a></li>
				<?php } ?>
				<li class="sel"><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=page&a=index&id=16" title="关于我们">关于我们</a></li>
			</ul>
		</div>
		
		<div class="clear"></div>
	
	</div>
	<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ads']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
	<?php if ($_smarty_tpl->tpl_vars['v']->value['position']==3){?>
	<div class="ad980">
		<?php if (empty($_smarty_tpl->tpl_vars['v']->value['url'])){?>
		<img src="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],980,80);?>
" />
		<?php }else{ ?>
			<a href="<?php echo $_smarty_tpl->tpl_vars['v']->value['url'];?>
" target="_blank"><img src="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],980,80);?>
" /></a>
		<?php }?>
	</div>
	<?php }?>
	<?php } ?>
<?php }} ?>